/* Author: Joyee Cheung */
/* Mail: joyeec9h3@gmail.com */

html {
    font-family: sans-serif;
    font-size: 16px;  /* Root font size */
}

/* Simple reset */

#at-plus-container * {
    padding: 0;
    margin: 0;
}

#at-plus-container li {
    list-style-type: none;
}

/* The memu */

#at-plus-container {
    position: fixed;
    bottom: 6rem;

    width: 2rem;
    height: 2rem;

    left: 50%;
    transform: translateX(-50%);

    transition: all 0.6s ease;
}

#at-plus-container:hover {
    bottom: 0;

    width: 12rem;
    height: 18rem;
}

#bottom-positioner {
    position: absolute;
    top: 0;
    left: 0;

    transition: all 0.6s ease;
}

#at-plus-container:hover #bottom-positioner {
    top: 10rem;
    left: 5rem;
}

/* button */

#button {
    border-radius: 100%;

    position: relative;
    overflow: visible;
}

#at-plus-container:hover #button {
    overflow: visible;
}

#at-plus-container .apb {
    position: absolute;
    top: -1rem;
    left: -1rem;

    width: 2rem;
    height: 2rem;

    transition: all 0.3s ease 0.5s;

    border-radius: 100%;
    background-color: rgba(0, 0, 60, .4);
} 

#at-plus-container:hover .apb {
    position: absolute;

    top: -1.5rem;
    left: -1.5rem;

    width: 3rem;
    height: 3rem;

    transition: all 0.6s ease;
    border-radius: 100%;

    background-color: rgba(48, 63, 159, 1);
}

#at-plus-container .icon {
    width: 100%;
    height: 100%;

    background: url(../assets/images/atplus_white.png) center no-repeat;
    background-size: 80%;

    transition: background-image 0.5s ease,
                width 0.5s ease 0.5s,
                height 0.5s ease 0.5s;
}

#at-plus-container:hover .icon {
    background: url(../assets/images/atplus_green.png) center no-repeat;
    background-size: 80%;

    transition: all 0.6s ease;
}

/* Info bar */

#at-plus-container #info-bar {
    position: absolute;
    text-align: center;
    cursor: pointer;

    width: 1rem;
    height: 1rem;
    border-radius: 100%;

    top: -0.5rem;
    left: -0.5rem;

    color: transparent;
    overflow: hidden;
    transition: all 0.6s ease;
}

#at-plus-container:hover #info-bar.disabled {
   cursor: default;
   background-color: rgba(0, 0, 10, .4);
}

#at-plus-container:hover #info-bar {
    width: 8rem;
    height: 8rem;
    border-radius: 100%;

    top: -10rem;
    left: -4rem;

    background-color: rgba(48, 63, 159, 1);
    color: #2AD591;
    font-size: 2rem;

    overflow: hidden;

    transition: all 0.6s ease;
}

#at-plus-container #sequence {
    display: none;
}

#at-plus-container:hover #sequence {
    margin: 2rem 0 0.5rem 0;
    padding: 0;
    font-size: 1rem;
    display: block;
}

/* Control rings */

#at-plus-container #control-ring .button {
    width: 1rem;
    height: 1rem;
    border-radius: 100%;

    top: -0.5rem;
    left: -0.5rem;
    position: absolute;

    text-align: center;
    line-height: 2rem;

    transition: all 0.6s ease;
    color: transparent;

    background-size: 50%;
}

#at-plus-container:hover #control-ring .button {
    width: 2rem;
    height: 2rem;

    color: #2AD591;
    background-color: rgba(48, 63, 159, 1);
}

#at-plus-container:hover #control-ring .button.disabled {
    color: white;
    background-color: rgba(0, 0, 10, .4);
    cursor: default;
}

/* Ring-specific style */

#at-plus-container:hover #button-a {
    left: -4.4rem;
    top: -2.5rem;
}

#at-plus-container:hover #button-b {
    left: -4.7rem;
    top: -0.2rem;
}

#at-plus-container:hover #button-c {
    left: -3.6rem;
    top: 1.9rem;
}

#at-plus-container:hover #button-d {
    left: -1.3rem;
    top: 2.8rem;
}

#at-plus-container:hover #button-e {
    left: 1.2rem;
    top: 2rem;
}


/* Unread alert */

#at-plus-container .random {
    width: 0;
    height: 0;
    border-radius: 100%;

    color: transparent;
    background-color: transparent;

    text-align: center;

    position: absolute;
    right: -0.2rem;
    top: -0.2rem;

    line-height: 1rem;
    transition: all 0.6s ease;
}

#at-plus-container:hover .random.show {
    width: 1rem;
    height: 1rem;
    border-radius: 100%;

    color: white;
    background-color: red;

    font-size: 0.6rem;

    transition: all 0.2s ease;
}

#at-plus-container #control-ring .button,
#at-plus-container #info-bar,
#at-plus-container .apb {
    cursor: pointer;
}

#at-plus-container .apb.disabled {
    cursor: default;
}
